package com.bamboo.eduservice.service;

import com.bamboo.eduservice.entity.EduChapter;
import com.bamboo.eduservice.entity.vo.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author jack.wu
 * @since 2020-07-05
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 根据课程号查询章节和小节
     *
     * @param courseId 课程id
     * @return 章节和小节
     */
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    /**
     * 删除章节
     *
     * @param id 章节id
     * @return 结果
     */
    boolean deleteChapterInfo(String id);
}
